<?php
/**
 * Clase DP para ApFacturaLineaDP
 *
 * @package    
 * @subpackage ApFacturaLineaDP
 * @author     hans
 * @version    SVN:: ApFacturaLineaDP.class.php,v 1.1 2012-10-07 03:37:49 Hans.parra Exp $
 */

require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/common/conexion.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/gourmet-express/trunk/src/class/po/facturas/BDP/BaseApFacturaLineaDP.class.php');

class ApFacturaLineaDP extends BaseApFacturaLineaDP
{

    public function eliminarPoFacturaDetalle()
    {
        try 
        {
            $o_conexion = new BaseDatos();
            $con = $o_conexion->conectar();
            $sql = "DELETE FROM ap_factura_linea WHERE 1 AND facpl_facId='".$this->getFacId()."';"; 
            $result = mysql_query($sql);
            
            return true;
            
        }catch ( Exception $o_Error )
        {
          throw new Exception($o_Error->getMessage().' en '.$o_Error->getFile().' linea '.$o_Error->getLine());
        }
    }    
    
}